{
    var count, faces, sum
    count = argument0;
    faces = argument1;
    sum = 0;
    repeat (count) sum += floor(random(faces))+1;
    return sum;
}
